#!/usr/bin/env python
# -*- coding:utf8 -*-
# uncompyle6 version 2.15.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Jul  1 2017, 13:36:56) 
# [GCC 4.4.6 20110731 (Red Hat 4.4.6-4)]
# Embedded file name: ./paas/urls.py
# Compiled at: 2017-11-16 15:44:29
"""
Tencent is pleased to support the open source community by making 蓝鲸智云(BlueKing) available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.

paas URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add an import:  from blog import urls as blog_urls
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import RedirectView
from django.http import HttpResponse
urlpatterns = [
 url('^$', RedirectView.as_view(pattern_name='platform', permanent=True)),
 url('^accounts/', include('account.urls')),
 url('^admin/', include(admin.site.urls)),
 url('^engine/', include('engine.urls')),
 url('^app/', include('app.urls')),
 url('^saas/', include('saas.urls')),
 url('^platform/', include('home.urls')),
 url('^release/', include('release.urls')),
 url('^unrelease/', include('release.urls_unrelease')),
 url('^resource/', include('resource.urls')),
 url('^guide/', include('guide.urls')),
 url('^esb/', include('esb.configs.urls')),
 url('^paas/api/', include('api.urls')),
 url('^healthz/', include('healthz.urls')),
 url('^robots\.txt$', lambda r: HttpResponse('User-agent: *Disallow: /', content_type='text/plain'))]
from account.decorators import login_exempt
import django.views
static_serve = login_exempt(django.views.static.serve)
urlpatterns.append(url('^media/(?P<path>.*)$', static_serve, {'document_root': settings.MEDIA_ROOT}))
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns += staticfiles_urlpatterns()
